package com.chandra.pos.employee.dao.entity;

import com.chandra.pos.model.PosEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created with IntelliJ IDEA.
 * User: Admin
 * Date: 11/19/13
 * Time: 11:47 PM
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "ROLES")
public class Role extends PosEntity {

    @Column(name="NAME", unique = true, nullable = false)
    private String name;


    @Column(name="DESCRIPTION", unique = false, nullable = true)
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
